
new Vue({
    el:'#main',
    data:{

        account:{

        },
    },
    methods:{
        selectOne:function (aid) {

            axios({
                url: `manager/account/selectOne/${aid}`,
                params: this.account
            }).then(response =>{
                this.account = response.data.obj;
            }).catch(error =>{
                layer.msg(error.msg)
            })
        },
        close:function () {
            let index = parent.layer.getFrameIndex(window.name); //获取窗口索引
            parent.layer.close(index);//通过父窗口layer对象关闭子窗口

        }

    },
    created:function () {
        this.selectOne(parent.layer.aid);
    }

})